﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Configurations;

namespace Pixysoft.Framework.Logs
{
    public interface ILogRecordCollection :
        IEnumerable<ILogRecord>, IEnumerator<ILogRecord>
    {
        ILogRecord this[int index] { get;}

        ILogRecord this[string id] { get;}

        ILogRecord Add(IXmlNode node);

        ILogRecord Add(string id, string date, LogLevel level, string text, string ip);

        void Add(ILogRecord record);

        bool Contains(string id);

        int Count { get;}

        void Sort();

        void Clear();
    }
}
